define([
    'underscore',
    'marionette',
    'view/storage-view',
    'templates', 'vent'
], function(_, marionette, StorageView, templates, vent) {
    return marionette.CompositeView.extend({
        tagName: 'ul',
        template: _.template(templates.storagelist),
        itemView: StorageView,
        itemViewContainer: "#storages",
        events: {
            "click .cleartoken": function() {
                vent.trigger('storagelist:cleartoken');
            }
        }
    });
});
